package com.aaa.service.impl;

import com.aaa.entity.Singer;
import com.aaa.mapper.SingerMapper;
import com.aaa.service.SingerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 歌手管理service实体类
 */
@Service
@Transactional
public class SingerServiceImpl extends ServiceImpl<SingerMapper, Singer> implements SingerService {

    @Resource
    private SingerMapper singerMapper;

    /**
     * 查询所有歌手
     * @return
     */
    @Override
    public List<Singer> listAll(String keyword) {
        return singerMapper.listAll(keyword);
    }

    @Override
    public List<Singer> findBySid(Integer sid) {
        return singerMapper.findBySid(sid);
    }
}
